home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 331 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.2 KB

  1. From: "john (j.d.) hickin" <hickin@bnr.ca>
  2. Message-ID: <4faher$sfc@bmtlh10.bnr.ca>
  3. X-Original-Date: Wed, 7 Feb 1996 15:45:31 +0000
  4. Path: in1.uu.net!bounce-back
  5. Date: 08 Feb 96 10:48:07 GMT
  6. Approved: fjh@cs.mu.oz.au
  7. References: <199602062335.SAA13298@novice.uwaterloo.ca>
  8. Subject: Re: basic_string& operator=(const basic_string&
  9. Newsgroups: comp.std.c++
  10. Organization: Bell-Northern Research
  11. X-Mailer: Mozilla 1.1 (X11; I; HP-UX A.09.05 9000/715) 
  12. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  13.     iQBFAgUBMRnVGuEDnX0m9pzZAQGorwF/WFLAnnOenStTumCEcdp/K7LUu16dbtd0
  14.     KP4MsFM/xrQ18fg3IM5/n1s+fB/l+/y3
  15.     =+Yij
  16.  
  17. My original posting was not terribly explicit.  My interpretation of the
  18. wording in Table 7 is that an assignment x=y cannot share the string data
  19. of y.  My interpretation of Table 3 for the copy constructor is the same:
  20. string x(y) cannot sahre y's data.  I conclude, therefore, that a counted
  21. pointer representation is allowed in theory but 'prevented in practice'.
  22.  
  23. -- 
  24. John Hickin      Nortel Technology, Montreal, Quebec
  25. (514) 765-7924   hickin@bnr.ca
  26. ---
  27. [ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  28.   Contact address: std-c++-request@ncar.ucar.edu.  Moderation policy:
  29.   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html. ]
  30.